import server from '@/utils/axiosAPI'

export default {
    getData (id){
        return server.get("categories",id)
    },

    addList (id){
        return server.post("categories",id)
    },

    addCate (id){
        return server.get("categories",id)
    },
    
    remove (id,cid){
        return server.delete(`categories/${id}` ,cid)
    },

    updataCate (id,cid){
        return server.put(`categories/${id}`,cid)
    },
}